/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.wiai.untl.core.dao.jpa;

import com.wiai.untl.core.dao.FakultasDAO;
import com.wiai.untl.core.entity.Fakultas;
import java.util.List;

/**
 *
 * @author Hendro Steven
 */
public class FakultasDAOImpl extends GeneralDAOImpl implements FakultasDAO{

    @Override
    public List<Fakultas> getAllFakultas() {
        return getJpaTemplate().find("Select f From Fakultas f");
    }

    @Override
    public Fakultas getById(long id) {
        return (Fakultas)getJpaTemplate().find(Fakultas.class, id);
    }
    
}
